package com.llc.mall.product.interfaces.ddd;

import com.llc.mall.product.application.command.commands.AddSpuCmd;
import com.llc.mall.product.application.command.service.SpuAppService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;


@RequestMapping("/spu")
@RestController
public class SpuController {

    @Resource
    private SpuAppService spuAppService;

    @PostMapping
    public void addSpu(@RequestBody AddSpuCmd addSpuCmd){
        spuAppService.addSpu(addSpuCmd);
    }

    @PutMapping
    public void modifySpu(){

    }

    @DeleteMapping
    public void deleteSpu(){

    }

}
